package myjava.inheritance._public_;

public class Son extends Dad {

   // foo is public in Dad and therefore inherited

   // this overrides foo in Dad se decommentata
   // public String foo = "hello I am foo in the subclass";

   public String getFoo() {
      return this.foo;
   }		
}